﻿//----------------------------------------------------------------------------------------------------
// A Turn contains all actions performed by a player
//----------------------------------------------------------------------------------------------------

package HG.GameDataTypes
{
	import HG.Actions.IAction;

	public class Turn
	{
		var m_turnID:Number;
		var m_actions:Array;
		
		//----------------------------------------------------------------------------------------------------
		public function Turn(ID:Number)
		{
			m_turnID = ID;
			
			m_actions = new Array();
		}
		
		//----------------------------------------------------------------------------------------------------
		// Add a player action to this turn
		//----------------------------------------------------------------------------------------------------
		public function AddAction(action:IAction)
		{
			m_actions.push(action);
		}
		
		//----------------------------------------------------------------------------------------------------
		// Get all Actions performed during this turn
		//----------------------------------------------------------------------------------------------------
		public function GetActions():Array
		{
			return m_actions;
		}
		
		//----------------------------------------------------------------------------------------------------
}
}